clear all
close all

subMat{1} = 'baselineRun';
subMat{2} = 'baselineNewHours';



for iiii = 1:2
    cd('C:\Users\g1txb02\Downloads\EstimationTruncated\EstimationTruncated')
    clearvars -except iiii subMat
    close all
    cucd=pwd;
flags.quit=0;
flags.unix=isunix;
flags.makeLocalCopy =1;
warning('on');
    %% 1.a .onscreen== 1 
%
%   will prompt you after each major step prior to estimation 

%% 1.b .checkReport==1
% 
%   will check all variables requested in report are correct 
flags.onscreen      = 0;
flags.checkReport   = 1;

%% 2. parallel
% Define If running Parallel and if so, in Miyajima, Quincy or Desktop 
%
% If flags.quincy==0 && flags.desktop==0 then it assume Miyajima
flags.parallel=1;  % Set = 1 if running parallel
flags.quincy  =0; 
flags.desktop =1; 

%% 3. Determine what to run 
%
%% 3.a locations 
%
% Name of the folder should be 
% root \ specification \ subfolder
%
% Model name is *automatically* determined to be 
% *mod<root><specification>.m*
%
% e.g. for the example below the model is modBMJDtr 
% and the prior and settings file will be picked from 
% '\BMJ\Dtr\laborFPFW noCorrel' 

location.root='BMJ_new';
%location.specification='DtrShellGObs';

location.specification='BaseDepUBaselineConsLeo'; 
location.subfolder=subMat{iiii};
% location.subfolder='M1LeoZeroLoadsZeroME';

% location.specification='DtrFGSmoothInf3Split';
% location.subfolder='drift noLabor 90 start 08q4 Pr5_orig';


%% 3.b settings 
% .settingsFile: name of the settings file to load 
%                if left empty default name is *settings.m* 
location.settingsFile=[]; 
% =========================================================================

modeFinderMain; 


end